{% extends 'generic/object_children.html' %}

{% block extra_controls %}
    {% if perms.dcim.add_device %}
        <div class="bulk-button-group">
            <a href="{% url 'dcim:device_add' %}?rack={{ object.pk }}&site={{ object.site.pk }}&return_url={% url 'dcim:rack_nonracked_devices' pk=object.pk %}"
               class="btn btn-primary btn-sm">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add non-racked device
            </a>
        </div>
    {% endif %}
{% endblock extra_controls %}
